package Reflex.类;

public class Student {
    private int id;
    private String name;

    public Student() {
    }

    public Student(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void getAge(){
        System.out.println("输出年龄");
    }

    //私有方法
    private void privateMethod(String param){
        System.out.println("调用私有方法," + "参数为-->"+param);
    }

    // 静态方法
    public static int setCount(int a){
        return a*10;
    }

    public static String moreParamMethod(int a ,String b, char c){
        return a + b + c;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
